<?php

namespace app\admin\validate;

use think\Validate;
/**
 *  Category 分类验证
 *  自动验证模型类
 * Class Category
 * @package app\validate\model
 */
class Category extends Validate
{
    //验证规则
    protected $rule = [
        'cname'=>'require',
    ];
    protected $message = [
        'cname'=>'分类名称必填',
    ];
}
